package com.card.vo;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * ClassName: LoginCode <br/>
 * Function: 兑换码兑换礼物. <br/>
 * date: 2018年10月16日 下午12:31:03 <br/>
 * 
 * @author lishuai11
 * @version
 * @since JDK 1.8
 */
@ApiModel
public class ExchangeCode {

	@ApiModelProperty(name = "giftId", value = "礼物id", required = true)
	@NotNull(message = "礼物不为空")
	private int giftId;
	
	@ApiModelProperty(name = "addressId", value = "地址id", required = true)
	@NotNull(message = "地址不为空")
	private int addressId;

	@ApiModelProperty(name = "number", value = "礼物数量", required = true)
	@NotNull(message = "礼物数量不为空")
	private int number;

	@ApiModelProperty(name = "exchangeCode", value = "兑换码", required = true)
	@NotBlank(message = "兑换码不为空")
	private String exchangeCode;

	/**
	 * @return the giftId
	 */
	public int getGiftId() {
		return giftId;
	}

	/**
	 * @param giftId the giftId to set
	 */
	public void setGiftId(int giftId) {
		this.giftId = giftId;
	}

	/**
	 * @return the number
	 */
	public int getNumber() {
		return number;
	}

	/**
	 * @param number the number to set
	 */
	public void setNumber(int number) {
		this.number = number;
	}

	/**
	 * @return the exchangeCode
	 */
	public String getExchangeCode() {
		return exchangeCode;
	}

	/**
	 * @param exchangeCode the exchangeCode to set
	 */
	public void setExchangeCode(String exchangeCode) {
		this.exchangeCode = exchangeCode;
	}

	/**
	 * @return the addressId
	 */
	public int getAddressId() {
		return addressId;
	}

	/**
	 * @param addressId the addressId to set
	 */
	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}

}
